package cn.yh.spring.struts.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionSupport;

import cn.yh.spring.struts.service.UserService;

@Controller
public class UserAction extends ActionSupport {

	private static final long serialVersionUID = 1L;
	@Autowired
	private UserService userService;
	
	public String  execute(){
		userService.addUser();
		return SUCCESS;
	}

}
